<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <!-- 登陆注册页面不用footer，用meta原属性控制footer的显示隐藏 -->
    <Footer v-show="!$route.meta.isHiddenFooter"></Footer>
  </div>
</template>

<script>
import Header from './components/Header.vue'
import Footer from './components/Footer.vue'
export default {
  name: 'App',
  components:{
    Header,
    Footer,
  },
  mounted(){
    this.$store.dispatch('home/getCategoryListData') 
  },
 
}
</script>

<style>

</style>
